<template>
    <view class="cu-modal bottom-modal" :class="{ show: show }">
        <view class="cu-dialog">
            <view class="cu-bar bg-white justify-end">
                <view class="content">设置密保</view>
                <view class="action" @tap="hideModal"><text class="cuIcon-close"></text></view>
            </view>
            <view class="password-wrap" :class="{ 'isIphoneX-class': isIphoneX }">
                <view>请设置密保问题</view>
                <input />
                <view>请设置密保答案</view>
                <textarea></textarea>
            </view>
        </view>
    </view>
</template>

<script>
    import {mapGetters} from 'vuex'
    export default {
        name: "securityIssue",
        props: {
            value: {}
        },
        computed: {
            ...mapGetters(['isIphoneX']),
        },
        data() {
            return {
                show: false,
            };
        },
        watch: {
            value(value) {
                this.show = value;
            },
            show(value) {
                this.$emit('input', value);
            }
        },
        methods: {
            hideModal() {
                this.show = false;
                this.$emit('close');
            }
        }
    }
</script>

<style scoped>

</style>
